package com.business.system.service;

import java.util.List;

import com.business.system.pojo.User;
import com.utility.Page;

public interface IUserSevice {

	public int insert(User user) throws RuntimeException;

	public int update(User user) throws RuntimeException;

	public int delete(int id) throws RuntimeException;

	public List<User> selectAll() throws RuntimeException;

	public int countAll() throws RuntimeException;

	public User findById(int id) throws RuntimeException;

	public User findByAccountAndPassword(String account, String password)
			throws RuntimeException;

	public User findByUserName(String userName) throws RuntimeException;

	public Page<User> findUserListPage(User user, int pageNo, int pageSize);
}
